Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Objects /
Chapter 7 - View-Related Objects / View-Related Objects Reference
View Device Functions / Manipulating View Device Object Properties


GXSetViewDeviceAttributes

You can use the GXSetViewDeviceAttributes function to set or clear the attributes of a view device object.

void GXSetViewDeviceAttributes(gxViewDevice target, 
                              gxDeviceAttribute attributes);
target
A reference to the view device whose attributes you wish to set.
attributes
A reference to the view port's attributes.
DESCRIPTION
The GXSetViewDeviceAttributes function sets the attributes of the view device object referenced in the target parameter to those specified in the attributes parameter. If you pass gxNoAttributes for the attributes parameter, all attributes are cleared.

You cannot change the attributes of a view device in the onscreen view group.

ERRORS, WARNINGS, AND NOTICES
Errors 
invalid_viewDevice_reference
parameter_out_of_range(debugging version)
viewDevice_access_restricted(debugging version)
Notices (debugging version) 
attributes_already_set 
SEE ALSO
View device attributes are described in the section "View Device Attributes" on page 7-27.

To get a view device's attributes, use the GXGetViewDeviceAttributes function, described in the previous section.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996